﻿@model Nop.Plugin.Widgets.EKomi.Models.FeedbackModel
@{
    Layout = "~/Views/Shared/_ColumnsTwo.cshtml";

    //title
    Html.AddTitleParts(T("PPlugins.Widgets.EKomi.Feedback").Text);
}
@using Nop.Web.Framework;
<div class="page ekomi-feedback-page">
    <div class="page-title">
       <h1>@T("Plugins.Widgets.EKomi.Feedback")</h1>
    </div>

    <div class="page-body">
        <ul>
            @{
                int i = 0;
            }
            @foreach (Nop.Plugin.Widgets.EKomi.Models.Feedback feedback in Model.Feedback)
            {
                <li class="@(i % 2 != 0 ? "alternate" : "")">
                    @if (Model.DisplayStars)
                    {
                        <div class="grey-stars">
                            <div class="yellow-stars" style="width:@(120*feedback.Rating/5)px"></div>
                        </div>
                    }
                    @if (Model.DisplayRating)
                    {
                        <div class="rating">
                            @feedback.Rating<span>/5</span>
                        </div>
                    }
                    @feedback.Comment
                </li>
                    i++;
            }
        </ul>
    </div>
</div>
